/*
 * XML Type:  BankMailTransactionResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.BankMailTransactionResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML BankMailTransactionResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class BankMailTransactionResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionResponseImpl implements net.ofx.types.x2003.x04.BankMailTransactionResponse
{
    
    public BankMailTransactionResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BANKMAILRS$0 = 
        new javax.xml.namespace.QName("", "BANKMAILRS");
    private static final javax.xml.namespace.QName CHKMAILRS$2 = 
        new javax.xml.namespace.QName("", "CHKMAILRS");
    private static final javax.xml.namespace.QName DEPMAILRS$4 = 
        new javax.xml.namespace.QName("", "DEPMAILRS");
    
    
    /**
     * Gets the "BANKMAILRS" element
     */
    public net.ofx.types.x2003.x04.BankMailResponse getBANKMAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankMailResponse target = null;
            target = (net.ofx.types.x2003.x04.BankMailResponse)get_store().find_element_user(BANKMAILRS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "BANKMAILRS" element
     */
    public boolean isSetBANKMAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BANKMAILRS$0) != 0;
        }
    }
    
    /**
     * Sets the "BANKMAILRS" element
     */
    public void setBANKMAILRS(net.ofx.types.x2003.x04.BankMailResponse bankmailrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankMailResponse target = null;
            target = (net.ofx.types.x2003.x04.BankMailResponse)get_store().find_element_user(BANKMAILRS$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BankMailResponse)get_store().add_element_user(BANKMAILRS$0);
            }
            target.set(bankmailrs);
        }
    }
    
    /**
     * Appends and returns a new empty "BANKMAILRS" element
     */
    public net.ofx.types.x2003.x04.BankMailResponse addNewBANKMAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankMailResponse target = null;
            target = (net.ofx.types.x2003.x04.BankMailResponse)get_store().add_element_user(BANKMAILRS$0);
            return target;
        }
    }
    
    /**
     * Unsets the "BANKMAILRS" element
     */
    public void unsetBANKMAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BANKMAILRS$0, 0);
        }
    }
    
    /**
     * Gets the "CHKMAILRS" element
     */
    public net.ofx.types.x2003.x04.CheckMailResponse getCHKMAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckMailResponse target = null;
            target = (net.ofx.types.x2003.x04.CheckMailResponse)get_store().find_element_user(CHKMAILRS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CHKMAILRS" element
     */
    public boolean isSetCHKMAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CHKMAILRS$2) != 0;
        }
    }
    
    /**
     * Sets the "CHKMAILRS" element
     */
    public void setCHKMAILRS(net.ofx.types.x2003.x04.CheckMailResponse chkmailrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckMailResponse target = null;
            target = (net.ofx.types.x2003.x04.CheckMailResponse)get_store().find_element_user(CHKMAILRS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CheckMailResponse)get_store().add_element_user(CHKMAILRS$2);
            }
            target.set(chkmailrs);
        }
    }
    
    /**
     * Appends and returns a new empty "CHKMAILRS" element
     */
    public net.ofx.types.x2003.x04.CheckMailResponse addNewCHKMAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckMailResponse target = null;
            target = (net.ofx.types.x2003.x04.CheckMailResponse)get_store().add_element_user(CHKMAILRS$2);
            return target;
        }
    }
    
    /**
     * Unsets the "CHKMAILRS" element
     */
    public void unsetCHKMAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CHKMAILRS$2, 0);
        }
    }
    
    /**
     * Gets the "DEPMAILRS" element
     */
    public net.ofx.types.x2003.x04.DepositMailResponse getDEPMAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DepositMailResponse target = null;
            target = (net.ofx.types.x2003.x04.DepositMailResponse)get_store().find_element_user(DEPMAILRS$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "DEPMAILRS" element
     */
    public boolean isSetDEPMAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DEPMAILRS$4) != 0;
        }
    }
    
    /**
     * Sets the "DEPMAILRS" element
     */
    public void setDEPMAILRS(net.ofx.types.x2003.x04.DepositMailResponse depmailrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DepositMailResponse target = null;
            target = (net.ofx.types.x2003.x04.DepositMailResponse)get_store().find_element_user(DEPMAILRS$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DepositMailResponse)get_store().add_element_user(DEPMAILRS$4);
            }
            target.set(depmailrs);
        }
    }
    
    /**
     * Appends and returns a new empty "DEPMAILRS" element
     */
    public net.ofx.types.x2003.x04.DepositMailResponse addNewDEPMAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DepositMailResponse target = null;
            target = (net.ofx.types.x2003.x04.DepositMailResponse)get_store().add_element_user(DEPMAILRS$4);
            return target;
        }
    }
    
    /**
     * Unsets the "DEPMAILRS" element
     */
    public void unsetDEPMAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DEPMAILRS$4, 0);
        }
    }
}
